package com.songhq.data.service;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


//feign为声明式rest客户端
//configuration可以自定义配置
//验证了feignClient默认使用负载均衡的策略是轮询的方式

@FeignClient(name = "appuser",fallback=UserClientFallBack.class)
public interface UserClient {
	
	@RequestMapping(value="/v1/user/test",method = RequestMethod.GET)
	String callUserTest() throws Exception;
	
	
	
	
	
	
	
   
}
//IRule  负载均衡策略
//BaseLoadBalancer
//ILoadBalancer   负载均衡器
//RandomRule